package testJob;

public abstract class CaclJob {
	private int[] result;
	private int duration;

	protected void setResult(int[] result) {
		this.result = result;
	}
	
	public int[] getResult() {
		return this.result;
	}
	
	protected void setDuration(int duration) {
		this.duration = duration;
	}
	public int getDuration() {
		return this.duration;
	}
	
	protected void resetDuration() {
		this.duration = 0;
	}
	
	public CaclJob() {
		
	}
	
	public CaclJob(boolean resetDuration) {
		if(resetDuration) {
			this.resetDuration();
		}
	}
	
	public abstract void run();
	
}
